<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sdSaleOrderItemsBean.id}"/>
		<f:event type="preRenderView" listener="#{sdSaleOrderItemsBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sd Sale Order Items"/>

	<ui:define name="header">
		Sd Sale Order Items
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sdSaleOrderItemsBean.id}">
				Edit existing Sd Sale Order Items
			</c:when>
			<c:otherwise>
				Create a new Sd Sale Order Items
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sdSaleOrderItemsBeanSdSaleOrderItemsSdSaleOrder" value="Sd Sale Order:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sdSaleOrderBean.converter}" id="sdSaleOrderItemsBeanSdSaleOrderItemsSdSaleOrder" value="#{sdSaleOrderItemsBean.sdSaleOrderItems.sdSaleOrder}">
						<f:selectItem/>
						<f:selectItems value="#{sdSaleOrderBean.all}"/>
					</h:selectOneMenu>
					<h:message for="sdSaleOrderItemsBeanSdSaleOrderItemsSdSaleOrder" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderItemsBeanSdSaleOrderItemsSoItemNo" value="So Item No:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderItemsBeanSdSaleOrderItemsSoItemNo" required="true" value="#{sdSaleOrderItemsBean.sdSaleOrderItems.soItemNo}"/>
					<h:message for="sdSaleOrderItemsBeanSdSaleOrderItemsSoItemNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdSaleOrderItemsBeanSdSaleOrderItemsSoItemDescr" value="So Item Descr:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderItemsBeanSdSaleOrderItemsSoItemDescr" maxLength="100" required="true" value="#{sdSaleOrderItemsBean.sdSaleOrderItems.soItemDescr}"/>
					<h:message for="sdSaleOrderItemsBeanSdSaleOrderItemsSoItemDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdSaleOrderItemsBeanSdSaleOrderItemsSoQty" value="So Qty:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderItemsBeanSdSaleOrderItemsSoQty" required="true" value="#{sdSaleOrderItemsBean.sdSaleOrderItems.soQty}"/>
					<h:message for="sdSaleOrderItemsBeanSdSaleOrderItemsSoQty" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdSaleOrderItemsBeanSdSaleOrderItemsSoPpu" value="So Ppu:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderItemsBeanSdSaleOrderItemsSoPpu" required="true" value="#{sdSaleOrderItemsBean.sdSaleOrderItems.soPpu}"/>
					<h:message for="sdSaleOrderItemsBeanSdSaleOrderItemsSoPpu" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdSaleOrderItemsBeanSdSaleOrderItemsSoTotalPriceExcVat" value="So Price Exc Vat:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderItemsBeanSdSaleOrderItemsSoTotalPriceExcVat" required="true" value="#{sdSaleOrderItemsBean.sdSaleOrderItems.soTotalPriceExcVat}"/>
					<h:message for="sdSaleOrderItemsBeanSdSaleOrderItemsSoTotalPriceExcVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdSaleOrderItemsBeanSdSaleOrderItemsSoStatusIncVat" value="So Status Inc Vat:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderItemsBeanSdSaleOrderItemsSoStatusIncVat" required="true" value="#{sdSaleOrderItemsBean.sdSaleOrderItems.soStatusIncVat}"/>
					<h:message for="sdSaleOrderItemsBeanSdSaleOrderItemsSoStatusIncVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdSaleOrderItemsBeanSdSaleOrderItemsSoVatPercVal" value="So Vat Perc Val:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderItemsBeanSdSaleOrderItemsSoVatPercVal" required="true" value="#{sdSaleOrderItemsBean.sdSaleOrderItems.soVatPercVal}"/>
					<h:message for="sdSaleOrderItemsBeanSdSaleOrderItemsSoVatPercVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdSaleOrderItemsBeanSdSaleOrderItemsSoVat" value="So Vat:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderItemsBeanSdSaleOrderItemsSoVat" required="true" value="#{sdSaleOrderItemsBean.sdSaleOrderItems.soVat}"/>
					<h:message for="sdSaleOrderItemsBeanSdSaleOrderItemsSoVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdSaleOrderItemsBeanSdSaleOrderItemsSoTotalPrice" value="So Price:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderItemsBeanSdSaleOrderItemsSoTotalPrice" required="true" value="#{sdSaleOrderItemsBean.sdSaleOrderItems.soTotalPrice}"/>
					<h:message for="sdSaleOrderItemsBeanSdSaleOrderItemsSoTotalPrice" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sdSaleOrderItemsBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sdSaleOrderItemsBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sdSaleOrderItemsBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sdSaleOrderItemsBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>